/**
 * @Author: 杨军
 * @Date: 2019/12/11
 * @Last Modified by:
 * @Last Modified time: 2019-11-19 14:13:39
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取销售结算情况查询
export const searchSettleMentInfos = params =>
  axios.get(`${SERVER.SEARCH_VEHICLE}/query/vehicleSettlement/searchSettleMentInfos`, {
    params,
    timeout: 5000000
  });

// 获取销售结算情况导出
export const exportSettleMentInfos = params =>
  axios.get(`${SERVER.VEHICLE}/query/vehicleSettlement/exportSettleMentInfos/excel`, {
    params,
    responseType: 'blob',
    timeout: 9000000
  });

// 整车销售导出
export const exportSalesSituationInfos = params =>
  axios.get(`${SERVER.VEHICLE}/query/vehicleSettlement/exportSalesSituationInfos/excel`, {
    params,
    responseType: 'blob',
    timeout: 9000000
  });

// 销售顾问
export const getUserListSelect = params =>
  axios.get(`/api/sysManage/basedata/users/getUserListByRole?role=10071011`, {
    params
  });

// 获取整车销售情况查询
export const searchSalesSituationInfos = params =>
  axios.get(`${SERVER.SEARCH_VEHICLE}/query/vehicleSettlement/searchSalesSituationInfos`, {
    params
  });
